package mrdemo010;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class SortWithNameReduce extends Reducer<LongWritable, Text, Text, LongWritable>{
	 
	 @Override
	protected void reduce(LongWritable k2, Iterable<Text> v2s,
			Reducer<LongWritable, Text, Text, LongWritable>.Context context)
			throws IOException, InterruptedException {
		 
		 for(Text v : v2s) {
			 context.write(v, k2);
		 }
	 }
	 
}
